﻿using System;
using smp.ButterflyCakes.Domain.Interfaces;
using smp.ButterflyCakes.Models.Data;

namespace smp.ButterflyCakes.Domain.Implementation
{
    public class DomainFactory : IDomainFactory
    {
        #region Implementation of IDomainFactory

        public DomainResponse CreateOrder(Guid id)
        {
            var order = new Order();
            return order.Create(id);
        }

        public IOrder Order(Guid id)
        {
            return new Order(id);
        }

        public ICake Cake(Guid id)
        {
            return new Cake(id);
        }

        public IShapeBuilder ShapeBuilder()
        {
            return new ShapeBuilder();
        }

        #endregion
    }
}
